package com.wjbgn.electronicnian.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Description:
 * Create Date: 2022-01-21T17:38:21.072290700
 *
 * @author weirx
 * @version 1.0
 */
@Data
@TableName(value = "nian_steal_dumplings_log")
public class NianStealDumplingsLogDO {

    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    public NianStealDumplingsLogDO(Long nianId, String whoSteal, String dumplingsName) {
        this.nianId = nianId;
        this.whoSteal = whoSteal;
        this.dumplingsName = dumplingsName;
    }

    public NianStealDumplingsLogDO() {
    }

    /**
     * 记录老虎id
     */
    private Long nianId;

    /**
     * 记录老虎名字
     */
    private String whoSteal;

    /**
     * 饺子名称
     */
    private String dumplingsName;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 是否删除 1：是  0否
     */
    private Integer isDelete;

    /**
     * 偷去数量
     */
    @TableField(exist = false)
    private int stealNum;

}
